import babel from 'rollup-plugin-babel';

export default {
    input: 'index.js',
    output: [
        {
            file: 'dist/k-loading.common.js',
            format: 'cjs',
        },
        {
            file: 'dist/k-loading.esm.js',
            format: 'esm',
        },
    ],
    plugins: [
        babel({
            exclude: 'node_modules/**',
        }),
    ],
    external: ['vue'],
};
